package demo5;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-04-08
 * Time: 17:58
 */
public class Test {
    public static void main(String[] args) {
        MySingleList mySingleList = new MySingleList();
        mySingleList.createList();
        System.out.println("============");
        mySingleList.showList();
        System.out.println();
        System.out.println("链表长度为: " + mySingleList.size());
        System.out.println("是否包含key(true/false): " + mySingleList.contains(10));
        mySingleList.addFirst(99);
        mySingleList.showList();
        System.out.println();
        mySingleList.addLast(19);
        mySingleList.showList();
        System.out.println();
        mySingleList.addIndex(2, 88);
        mySingleList.showList();
    }

}
